package com.jqq.reflection.class_;

import com.jqq.Cat;

/**
 * @author 姬倩倩
 * @version 1.0
 */
public class GetClass_ {
    public static void main(String[] args) throws ClassNotFoundException {
        //1.Class.forName
        String classAllPath = "com.jqq.Cat";
        Class<?> cls1 = Class.forName(classAllPath);

        //2.类名.class
        Class cls2 = Cat.class;
        System.out.println(cls2);
    }
}
